package com.example.back.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.back.entity.InStore;
import com.example.back.mapper.InStoreMapper;
import com.example.back.service.InStoreService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InStoreServiceImpl extends ServiceImpl<InStoreMapper, InStore> implements InStoreService {
    @Resource
    private InStoreMapper inStoreMapper;

    @Override
    public List<InStore> findAllByStoreId(String storeId) {
        return inStoreMapper.findAllByStoreId(storeId);
    }

    @Override
    public int updateRealTon(String inId, double realTon) {
        return inStoreMapper.updateRealTon(inId,realTon);
    }


}
